package storage.storageDubboConsumer.controller;

import java.util.Map;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import storage.storageDubbointerface.ITestService;

/**
 * @author zhenzhanlong
 * @version 创建时间：2022年1月11日下午3:20:37
 *
 * @Description
 *
 */
@RestController
@RequestMapping("/user")
public class ConsumerController {
	@Reference
	private ITestService userService;

	@GetMapping("/test")
	public String getUserById(Map<String,Object> param) {
		System.out.println("调用参数key="+param.get("key")+",value={}"+param.get("value"));
		return userService.dubboCallProiderService(param);
	}
}